package com.woniuxy.API;

import com.woniuxy.entityDTO.UserDTO;
import org.example.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-coach")
public interface UserAPI {

    @RequestMapping( "selectUserScoreByUserId")
    public Result <UserDTO> selectUserScoreByUserId(@RequestParam("id") int id);

    @RequestMapping(value = "updateUserScoreByUserId",method = RequestMethod.GET)
    public Result <UserDTO> updateUserScoreByUserId(@RequestParam("id") int id, @RequestParam("Score") int Score);
}
